package com.tcl.aota.common.constants;

/**
 * 常量定义
 */
public abstract class Constants {

    public abstract class Common {
        public static final String BASE_PATH = "/data/aota-log/";
        public static final String LOG_PATH = BASE_PATH + "app_log_";
        public static final String FAILURE_FILE_PATH = BASE_PATH + "s3failed_file.log";
        public static final String FAILURE_FILE_PATH_HIS = BASE_PATH + "s3failed_file_";
        public static final String FAILURE_FILE_DIR = BASE_PATH + "tmpfile/";
        public static final String DATE_FORMART_1 = "yyyy-MM-dd";
        public static final String DATE_FORMART_2 = "yyyyMMddHHmm";
        public static final String NULL = "";
        public static final int SUCCESS = 1;
        public static final int FAIL = 0;
        public static final int AUTH_FAIL = 401;
        public static final int PARAMS_INVALID = 600;
        public static final int SESSION_OUT = -1;
        public static final int PKG_NOT_SAME = 2;//只能编辑相同appPackage的应用
        public static final int DELETE_NOT_ALLOW = 605;//不允许删除
        public static final int ZERO = 0;
        public static final int DAY = 24;//24小时
        public static final int WEEK = 7;//7天
        public static final int WEEK_FOUR = 7 * 4;//7天*4
        public static final int MONTH = 3;//3个月
        public static final String PACKAGE_PREFIX = "PACKAGE_";
        public static final long DEFAULT_PACKAGEID = 0;
        public static final int DEFAULT_SEQUENCE = 9999;
        public static final int PAGE_SIZE = 10;
        public static final String USER_KEY = "user";
        public static final int INTERVAL_TIME = 24 * 60 * 60 * 1000;
        //dashbord标识
        public static final int STAT_HOUR = 1;
        public static final int STAT_DAY = 2;
        public static final int STAT_WEEK = 3;
        public static final int STAT_MONTH = 4;
        //dashbord曲线key定义
        public static final String DOWNLOAD = "download";
        public static final String INSTALL = "install";
        public static final String UPGRADE = "upgrade";
        //Android OS常量
        public static final String ANDROID_PREFIX = "Android";

    }


    public abstract class APP_UPLOAD {
        public static final int SUCCESS = 200;
        public static final int FAIL = 500;
        public static final int PARSE_FAIL = 501;
        public static final int VERSION_FAIL = 502;
    }


    public abstract class APPStatus {
        public static final int DOWNLOAD = 1;//下载成功，安装失败
        public static final int INTALL = 2;//初次安装成功
        public static final int UNGRADE = 3;//更新成功
        public static final int FALIUR = 0;
        public static final int TRASH = 1;
        public static final int UNTRASH = 0;
        public static final int UN_PUBLISH = 0;
        public static final int PUBLISH = 1;
        public static final int INSTALL_FORCE=1;
        public static final int INSTALL_SILENT=0;
        //第三方上传app默认值
        public static final String DEFAULT_LABEL="Update";
        public static final int DEFAULT_SOURCE=1;
        public static final String DEFAULT_OS="6.0";
        public static final String DEFAULT_STAR="3";
        public static final String DEFAULT_UPLOAD_USER="autosync";

    }


    public abstract class REDIS {
        public static final String APP = "app";
        public static final String CLUSTER_1 = "aota";
        public static final String STRATEGY = "strategy";
        public static final String CUREF = "curef_";
    }


    public abstract class APK {
        public static final int UPLOAD_FAIL = 0;
        public static final int PARSE_FAIL = 1;
        public static final int PARSE_SUCCESS = 2;
        public static final int PARSE_EXISTED = 3;

        public static final String STORE_TEMP = "storeTmp/";//icon解析临时存储目录
        public static final String APK_PATH = "apk/";
        public static final String ICON_PATH = "icon/";
        public static final String IMAGS_PATH = "imgs/";

        public static final int APK_FLAG = 1;
        public static final int ICON_FLAG = 2;
        public static final int IMAGS_FLAG = 3;

    }


    public abstract class AMAZON {
        public static final int UPLOAD_FLAG = 1;//上传文件
        public static final int DELETE_FLAG = 2;//删除文件
        public static final int AGAIN_COUNT = 3;
    }
    
    public abstract class Reason {
        
        public static final String UNPUBLISH = "unpublish按钮触发";
        
        public static final String DELETE = "单个删除按钮触发";
        
        public static final String CU_UPGRADE = "高版本CU替换低版本cu自动取消触发";
    }

}
